x86 hvm ept: Remove EPT guest linear address validation
authorKeir Fraser <keir@xen.org>
Tue, 21 Dec 2010 18:09:34 +0000 (18:09 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 21 Dec 2010 18:09:34 +0000 (18:09 +0000)
For EPT violation resulting from an attempt to load the guest PDPTEs
as part of the execution of the MOV CR instruction, the EPT_GLA_VALID
is not valid.  This situation should not happen in most situation,
since we always populate guest memory. But this is not ture for PAE
guest under the PoD/Page sharing situation. In that situation, a page
pointed by CR3 may be un-populated, and we need handle it in such
situation.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/hvm/vmx/vmx.c

index f89428d60e3a9ecea2b612287ead50b78f5666cf..b4c8570503656e91ffdb91679c1d1128dc967351 100644 (file)
@@ -2079,8 +2079,7 @@ static void ept_handle_violation(unsigned long qualification, paddr_t gpa)
         __trace_var(TRC_HVM_NPF, 0, sizeof(_d), &_d);
     }
 
-    if ( (qualification & EPT_GLA_VALID) &&
-         hvm_hap_nested_page_fault(gfn) )
+    if ( hvm_hap_nested_page_fault(gfn) )
         return;
 
     /* Everything else is an error. */